{% macro gen_table(orders, current_user, kwargs) %}
    <table id="brand-table"
           class="table table-bordered table-hover table-condensed table-striped">
        <thead>
        <tr>
            <th>序号</th>
            <th>订单编号</th>
            <th>出售人</th>
            <th>购买人</th>
            <th>购买人电话</th>
            <th>总价</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        {% for each in orders %}
            <tr>
                <td>{{ loop.index }}</td>
                <td>{{ each.order_no }}</td>
                <td>{{ each.seller_name }}</td>
                <td>{{ each.buyer_name }}</td>
                <td>{{ each.buyer_mobile| encrypt }}</td>
                <td>{{ each.total_display }}</td>
                <td></td>
            </tr>
        {% endfor %}
        </tbody>
    </table>s
{% endmacro %}
